package com.halflife.nio;

import java.io.UnsupportedEncodingException;

public class Test {
    public static void main(String[] args) throws UnsupportedEncodingException {
        int aa = 0x0d;
        //0000110100001010
        System.out.println(Integer.toBinaryString(aa));
        byte[] bytes = new byte[]{0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0};
        System.out.println(new String(bytes,"gbk"));
    }
}
